#hardware platform: FireBeetle-ESP8266

import time
from machine import Pin
from machine import UART
uart = UART(2, 9600) # init with given baudrate
uart.init(9600, bits=8, parity=None, stop=1) # init with given parameters
led=Pin(2,Pin.OUT)          #create LED object from pin2,Set Pin2 to output

while True:
  led.value(1)              #turn off
  time.sleep(0.5)
  uart.write("uart2->>>>>>>>>>>>>>")
  led.value(0)              #turn on
  uart.write('abc')
  time.sleep(0.5)

